<%@page import="com.cn.entity.User"%>
<%@page import="com.cn.dao.UserDao"%>
<%@page import="com.cn.entity.Orders"%>
<%@page import="java.util.List"%>
<%@page import="com.cn.dao.OrdersDao"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登录</title>
</head>
<body>
<form action="loginAction" method="post">
<h4>已完成的任务</h4>
<table>

<tr>     
   
<td>体检单号 </td>
<td> 体检人</td>
<td> 查看详细</td>

</tr>

<%OrdersDao od=new OrdersDao();
List<Orders> list=od.scanPart("2013-7-17");

%>

<%for (int i=0;i<list.size();i++) {
	
	Orders order=list.get(i);
	if(order.getAdvise()!=null){
	
	%>


<tr>
<td><%=i+1%></td>
<td><%int userid=order.getUserid();
          UserDao ud=new UserDao();
          User user=ud.scanOne(userid);
%>
<%=user.getXingming() %></td>
<td><a href="orderfiniseddetail.jsp?orderid=<%=order.getOrderid()%>">查看详细<%=order.getOrderid()%></a> </td>

</tr>

<%} %>
<%} %>
</table>


</form>
<a href="doctor_orders.jsp">返回</a>

</body>
</html>